<?php
 ini_set('date.timezone', 'Europe/Berlin');
 
 ini_set('display_errors', 'On');
 error_reporting(-1);


require './libs/Smarty.class.php';
require "./configs/settings.php";
require "./app/base.php";

if($con_dbtype == CONNECTION_TYPE_MYSQL) {
	require "./app/model/model_mysql.php";
} elseif ($con_dbtype == CONNECTION_TYPE_ORACLE) {
	require "./app/model/model_oracle.php";
}

session_start();
init();

//$system = new systemBase;
//$dbg = new systemDebug;

//$dbg->debugging = true;
$lsModule = getGet('module');

if(empty($lsModule)) {
	$lsModuleName = "HomePage";
	$lsClassName  = "ChomePageClass";
} else {
	$lsModuleName = $lsModule;
	$lsClassName  = "C".$lsModuleName."Class";
}

require "./app/controller/C".$lsModuleName.".php";

$lmModule = new $lsClassName($lsModuleName);